<template>
  <div class="app-container home">
    <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px">
      <el-form-item label="岗位编码" prop="postCode">
        <el-input
          v-model="queryParams.postCode"
          placeholder="请输入岗位编码"
          clearable
        />
      </el-form-item>
    </el-form>

    <el-table v-loading="loading" :data="cardList">
      <el-table-column type="selection" width="55" align="center" />
      <el-table-column label="记录编号" align="center"  />
    </el-table>


  </div>

</template>


<script>
import {listCard} from "@/api/card/post";

export default {
  name: "Post",
  data() {
    return {
      loading: true,
      cardList: [],
      total:0,
      queryParams: {
        pageNum: 1,
        pageSize: 10,
        postCode: undefined,
        postName: undefined,
        status: undefined
      }
    }
  },
  methods: {
    /** 查询打卡列表 */
    getList() {
      this.loading = true;
      listCard(this.queryParams).then(response => {
        this.cardList = response.rows;
        this.total = response.total;
        this.loading = false;
      });
    }
  }
}
</script>

